<%--
  Created by IntelliJ IDEA.
  User: 42243
  Date: 2021/3/31
  Time: 12:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
    <link rel="shortcut icon" href="<%=request.getContextPath()%>/img/logo2.png" type="image/x-icon">
</head>
<body>
<jsp:include page="index.html"/>
<jsp:include page="WEB-INF/header/header-user.jsp"/>
<%

%>
<jsp:useBean id="userInfo" class="com.cn.entity.UserInfo" scope="session"/>
<div class="container" ng-controller="userCtrl" ng-init="getUser()">
    <h2>欢迎回来,<jsp:getProperty name="userInfo" property="username"/></h2>
    <hr />
    <h3>个人资料</h3>
    <form action="changeinfo.jsp" method="post">
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                用户:
            </div>
            <div class="col-xs-9 text-left">
                <jsp:getProperty name="userInfo" property="username"/>
            </div>
        </div>
        <hr/>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                姓名:
            </div>
            <div class="col-xs-9 text-left b">
                <input type="text" name="name" required="" value="<jsp:getProperty name="userInfo" property="name"/>">
            </div>
        </div>
        <hr/>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                电话:
            </div>
            <div class="col-xs-9 text-left">
                <input type="text" name="phone" required="" value="<jsp:getProperty name="userInfo" property="phone"/>">
            </div>
        </div>
        <hr/>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                部门ID:
            </div>
            <div class="col-xs-9 text-left">
                <input type="text" name="departmentid" required="" value="<jsp:getProperty name="userInfo" property="departmentid"/>">
            </div>
        </div>
        <hr/>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                密码:
            </div>
            <div class="col-xs-9 text-left">
                <input type="text" name="password" required="" value="<jsp:getProperty name="userInfo" property="password"/>">
            </div>
        </div>
        <div style="height: 40px">
            <div class="col-sm-offset-2 col-sm-10">
                <button style="width: 100px;float: right" type="submit" class="col-sm-12 btn btn-primary" >修改并提交</button>
            </div>
        </div>
    </form>

</div>
</body>
</html>
